package com.linewow.xhyy.nihaonew.fragment.nav;

import android.support.annotation.NonNull;

import com.cleveroad.slidingtutorial.Direction;
import com.cleveroad.slidingtutorial.PageSupportFragment;
import com.cleveroad.slidingtutorial.TransformItem;
import com.linewow.xhyy.nihaonew.R;

/**
 * Created by LXR on 2016/11/9.
 */
public class SecondFragment extends PageSupportFragment {
    @Override
    protected int getLayoutResId() {
        return R.layout.fragment_second;
    }

    @NonNull
    @Override
    protected TransformItem[] getTransformItems() {
        return new TransformItem[]{
                TransformItem.create(R.id.nav_content, Direction.LEFT_TO_RIGHT,0.2f),
                TransformItem.create(R.id.nav_page, Direction.LEFT_TO_RIGHT,0.9f),
                TransformItem.create(R.id.nav_title, Direction.LEFT_TO_RIGHT,0.08f),
                TransformItem.create(R.id.nav_img, Direction.RIGHT_TO_LEFT,0.2f)
        };
    }
}
